<template>
	<view>
		<button data-url="pages/UIPage/textPage/textPage" @click="goPage">文本组件</button>
		<button data-url="pages/UIPage/inputPage/inputPage" @click="goPage">输入框组件</button>
		<button data-url="pages/UIPage/imagePage/imagePage" @click="goPage">图片组件</button>
		<button data-url="pages/UIPage/buttonPage/buttonPage" @click="goPage">按钮组件</button>
		<button data-url="pages/UIPage/listPage/listPage" @click="goPage">列表组件</button>
		<button data-url="pages/UIPage/swipePage/swipePage" @click="goPage">轮播图组件</button>
		<button data-url="pages/UIPage/tabsPage/tabsPage" @click="goPage">tabs组件</button>
		<button data-url="pages/UIPage/editorPage/editorPage" @click="goPage">富文本组件</button>
		<button data-url="pages/UIPage/yiDuo/yiDuo" @click="goPage">一多</button>
	</view>
</template>

<script setup>
const goPage = (event) => {
	const url = event.currentTarget.dataset.url;
	uni.navigateTo({
		url: '/' + url
	});
};
</script>

<style lang="less" scoped></style>
